package com.zaiteng;

import anywheresoftware.b4a.AbsObjectWrapper;
import anywheresoftware.b4a.BA.ShortName;
import cn.jpush.im.android.api.callback.ProgressUpdateCallback;
import cn.jpush.im.android.api.content.MessageContent;
import cn.jpush.im.android.api.enums.ContentType;
import cn.jpush.im.android.api.enums.ConversationType;
import cn.jpush.im.android.api.enums.MessageDirect;
import cn.jpush.im.android.api.enums.MessageStatus;
import cn.jpush.im.android.api.model.Message;
import cn.jpush.im.android.api.model.UserInfo;
import cn.jpush.im.api.BasicCallback;

@ShortName("Message_im")
public class MessageWrapper extends AbsObjectWrapper<Message>{
	private Message message;

	public void Initialize(Message msg) {
		this.message = msg;
		setObject(msg);
	}

	public Message getMessage() {
		return this.message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public int getId() {
		return this.message.getId();
	}

	public MessageContent getContent() {
		return this.message.getContent();
	}

	public ContentType getContentType() {
		return this.message.getContentType();
	}

	public MessageStatus getStatus() {
		return this.message.getStatus();
	}

	public MessageDirect getDirect() {
		return this.message.getDirect();
	}

	public ConversationType getTargetType() {
		return this.message.getTargetType();
	}

	public long getCreateTime() {
		return this.message.getCreateTime();
	}

	public String getFromType() {
		return this.message.getFromType();
	}

	public String getFromName() {
		return this.message.getFromName();
	}

	public String getFromID() {
		return this.message.getFromID();
	}

	public String getFromAppKey() {
		return this.message.getFromAppKey();
	}

	public String getTargetName() {
		return this.message.getTargetName();
	}

	public String getTargetID() {
		return this.message.getTargetID();
	}

	public String getTargetAppKey() {
		return this.message.getTargetAppKey();
	}

	public Object getTargetInfo() {
		return this.message.getTargetInfo();
	}

	public UserInfo getFromUser() {
		return this.message.getFromUser();
	}

	public void setOnContentUploadProgressCallback(ProgressUpdateCallback arg0){
		this.message.setOnContentUploadProgressCallback(arg0);
	}

	public boolean isContentUploadProgressCallbackExists(){
		return this.message.isContentUploadProgressCallbackExists();
	}

	public void setOnContentDownloadProgressCallback(ProgressUpdateCallback arg0){
		this.message.setOnContentDownloadProgressCallback(arg0);
	}

	public boolean isContentDownloadProgressCallbackExists(){
		return this.message.isContentDownloadProgressCallbackExists();
	}

	public void setOnSendCompleteCallback(BasicCallback arg0){
		this.message.setOnSendCompleteCallback(arg0);
	}

	public boolean isSendCompleteCallbackExists(){
		return this.message.isSendCompleteCallbackExists();
	}

	public Long getServerMessageId() {
		return this.message.getServerMessageId();
	}


}
